//
//  MPConstant.swift
//  Whiteboard
//
//  Created by point on 2018/1/4.
//  Copyright © 2018年 point. All rights reserved.
//

import UIKit



/*七牛*/
let kgetImgToken =  "/qiniu/getImgToken"
let kgetVideoToken =  "/qiniu/getVideoToken"
let kqnImageHost = "http://image.51uxsh.com/"
let kqnVideoHost =  "http://video.51uxsh.com/"


/* 聚合 */
let kHost = "http://47.106.71.104:3333/project-api"

let kgetCheckCode =  "/common/getCheckCode"
let kcommonLogin  =  "/common/login"

/** 我的 */
//消息查询
let kqueryMsgNum = "/common/queryMsgNum"
let kexchangeSeeNum = "/common/exchangeSeeNum"
let kapplyAuthentication = "/user/addUserApplyAuthentication"
let kqueryInstitutionResource = "/institution/queryInstitutionResource"


/** 机构列表*/
let kqueryInstitutionList = "/institution/queryInstitutionList"
/** 机构评论*/
let kaddCommentInstitution = "/comment/addCommentInstitution"
/// 获取评论列表
let kqueryCommentForInstitutionList = "/comment/queryCommentForInstitutionList"

/** 上传图片*/
let kuploadimg = "/file/uploadimg"
let kuploadimgs = "/file/uploadimgs"

/** 添加机构*/
let kaddInstitution = "/institution/addInstitution"
let kgetInstitutionInfo = "/institution/getInstitutionInfo"


/** 添加机构资源 */
let kgaddInstitutionResource = "/institution/addInstitutionResource"
/** 删除机构资源 */
let kdeleteInstitutionResource = "/institution/deleteInstitutionResource"
/** 取消机构预约 */
let kcancelAppointmentInstitution = "/institution/cancelAppointmentInstitution"
/** 取消机构收藏 */
let kcancelCollectionInstitution = "/institution/cancelCollectionInstitution"
/** 机构预约 */
let kaddAppointmentInstitution = "/institution/addAppointmentInstitution"
/** 机构收藏 */
let kaddCollectionInstitution = "/institution/addCollectionInstitution"
/** 拨打机构的电话 */
let kuserCallInstitution = "/institution/userCallInstitution"
/** 用户查看预约机构的列表 */
let kqueryAppointmentInstitutionList = "/institution/queryAppointmentInstitutionList"
/** 机构查看预约的列表 */
let kqueryAppointmentList = "/institution/queryAppointmentList"
/** 查看消息列表 */
let kqueryMsg = "/common/queryMsg"
/** 查看搜藏的机构*/
let kqueryCollectionInstitutionList = "/institution/queryCollectionInstitutionList"
/** 更改用户信息 */
let kupdateUser = "/user/updateUser"
/** 获取用户基本信息 */
let kinitMy = "/common/initMy"

/** 机构拨打给用户 */
let kInstitutionCallUser = "/institution/institutionCallUser"



let kqueryMyGroupTopicList = "/topic/queryMyGroupTopicList"   //关注（获取我加入的小组内话题及我关注作者的话题）
let kqueryMyTopicList = "/topic/queryMytopic"   //我的话题分页查询（获取用户自己创建的话题）
let kqueryTopicInfo = "/topic/queryTopicInfo"   //查询话题详情
let kqueryTopicList = "/topic/queryTopicList"   //话题广场分页查询
let kqueryMyCollectTopicList = "/topic/queryCollectionTopicList"   //我收藏的话题
let kqueryGroupTopicList = "/topic/queryGroupTopicList"   //获取小组内话题集合分页显示
let kqueryUserIsGroup = "/group/userIsGroup" //是否加入小组

let kaddCollectTopicList = "/topic/addCollectionTopic" //用户添加收藏
let kaddNewTopicList = "/topic/addTopic"   // 新增话题
let kcancelCollectTopicList = "/topic/cancelCollectionTopic"   //用户取消收藏
let kdeleteTopicList = "/topic/deleteTopic"   //删除话题
let kwebAddTopicList = "/topic/webAddTopic"   //webAddTopic

/** 小组接口*/
let kqueryGroupList = "/group/queryGroupList" //查询小组列表
let kqueryJoinedGroupList = "/group/queryAddTopicGroupByUser" //分页获取用户加入的小组信息
let kqueryMyCreateGroupList = "/group/queryMyGroupList" //小组管理（分页获取用我创建的小组）

let kaddGroupList = "/group/addApplyGroup" //申请添加小组信息
let kaddAdminToGroupList = "/group/addGroupAdmin" //小组长添加管理员
let kdeleteAdminToGroupList = "/group/deleteGroupAdmin" //删除小组管理员
let kqueryGroupAdminList = "/group/queryGroupAdminList" //获取小组管理员列表
let kisAdminToGroupList = "/group/queryGroupJurisdiction" //判断用户是否是此小组的管理员
let kquitOrJoinGroupList = "/group/userGroup" //退出小组或加入小组
let kqueryGroupUserList = "/group/queryGroupUserList" //获取小组成员（不包含管理员）

let kqueryCommentOfTopic = "/comment/queryCommentForTopicList" //分页话题评论列表
let kaddReplyOfTopic = "/comment/addTopicReply" //话题新增评论
let kqueryReplyToPreplyOfTopic = "/comment/queryReplyToReplyList" //分页评论回复列表

///* 点赞 */

let kaddLikeOfTopic = "/like/addTopicLike" //话题点赞
let kaddLikeReplyOfTopic = "/like/addTopicReplyLike" //话题回复点赞
let kcancelLikeOfTopic = "/like/cancelTopicLike" //取消话题赞
let kcancelLikeReplyOfTopic = "/like/cancelTopicReplyLike" // 取消话题回复赞

///* 关注*/
let kconcernAuthor = "/concern/addConcern" //关注作者
let kisConcernAuthorAndGroup = "/concern/isConcernAndGroup" //判断用户是否有加入小组或者关注作者
///*二维码*/
let kQRSetUser = "/login/setUser"//手机端访问此接口

//let kJuHeJoke = kJuHeHost + "joke/content/list.from?key=" + kJuHeAppkey
//let kJuHeTime = String(Int(NSDate().timeIntervalSince1970) - 10000)
//
///* 阿凡达 */
//let kAvatarAppkey = "1236d135ba4547d48c2795e5a16c5f9a"
//let kAvatarHost = "http://api.avatardata.cn/"
//let kAvatarJoke = kAvatarHost + "Joke/QueryJokeByTime?key=" + kAvatarAppkey
//let kAvatarJokeImg = kAvatarHost + "Joke/QueryImgByTime?key=" + kAvatarAppkey
//let kAvatarJokePageSize = "15"
//let kAvatarJokeSort = "desc"
//let kAvatarJokeSort2 = "desc"
//
///* showApi*/
//let kShowApiAppid = 53400
//let kShowApiSign = "7d50da70ba124fb19fff74747a10dcf8"
//let kShowApiHost = "http://route.showapi.com/852-2"

let kBaiduApi = "4jT21QeeQZcwpc3j01SbRiSZCWHgeWYk"


let nC1 = UIColor.init(hex: "eeeded") //新背景色

/* 颜色 */
///默认背景灰色
let kColorC2 = UIColor.init(hex: "#f2f3f4")!

/// 文字灰色
let kColorC5 = UIColor.init(hex: "#333333")!


let kColorOrange =  UIColor(r: 255, g: 127, b: 0)
let kColorWord = UIColor.black
let kColorDarkSlateGray = UIColor.init(hex: "0x082E54")!
let kColorGray = UIColor.init(hex: "#EAEAEA")!
let kColorBGGray = UIColor.init(hex: "#F5F5F5")!

/** 默认头像灰色 */
let kColorC1 = UIColor.init(hex: "#EAEAEA")!



/** 默认按钮色 */
let kColorC3 = UIColor.init(hex: "#1e55b7")!

/** 系统边框灰色 */
 let kColorC4 = UIColor.init(hex: "#D7D7D7")!


/** 论坛搜索框字体颜色*/
let kColorTextPlacehold = UIColor(hex: "#999999")!
let kColorText = UIColor(hex: "#000000")!

/** 导航栏背景色*/
let kColorNavBarBG = UIColor(hex:"#18bdfe")!

let kColorFocusBG = UIColor(hex: "#E51616")!;


let kColorBGcolor = UIColor.init(hex: "#FFFFFF")!
let kColorBtncolor = UIColor.init(hex: "#B2DAEF")!
let kColorBtnNormalColor = UIColor.init(hex: "#A8A8A8")!
let kColorBtnLigthColor = UIColor.init(hex: "#0084FF")!


/* 基本适配 */

let kScreenW  = UIScreen.main.bounds.size.width
let kScreenH  = UIScreen.main.bounds.size.height

let kRatio = kScreenW/375.0 > kScreenH/667.0 ? kScreenW/375.0: kScreenH/667.0

/* 基本枚举 */
enum mpLoadData {
    case mpLoadDataUp
    case mpLoadDataDown
}
